package com.xnyzc.lhy.common.penum.cms;

import com.xnyzc.lhy.common.penum.order.EOrderStatus;

/**
 * 司机信息管理枚举
 *
 * @author zhaolijie
 * @date 2019-08-23 14:23
 */
public enum EDriverComingUserType {
    //0:用户
    user(0, "用户"),
    //1：司机
    driver(1, "司机"),
    //2：管理员
    admin(2, "管理员");

    private Integer type;
    private String desc;

    EDriverComingUserType(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static EDriverComingUserType findById(Integer type) {
        EDriverComingUserType[] values = EDriverComingUserType.values();
        for (EDriverComingUserType value : values) {
            if (value.type.equals(type)) {
                return value;
            }
        }
        return null;
    }

    public Integer getType() {
        return this.type;
    }

    public String getDesc() {
        return this.desc;
    }
}
